mediafile: Turn into an extension point
authorMatthias Clasen <mclasen@redhat.com>
Thu, 1 Mar 2018 20:46:16 +0000 (21:46 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 18 Mar 2018 20:01:23 +0000 (21:01 +0100)
commite4338c4d422501a459c714a82da76e2ec29b7727
treeb7d75adc874c51ce0ba77c1ac0b47d9289d6981d
parent29cccf5e84d61f438298e6f857939a1bcdb3d33a
mediafile: Turn into an extension point

This way, we can support external libraries providing implementations of
GtkMediaFile.

We also add a media backend called 'nomedia' that can be enabled to not
compile any support for GtkMediaFile. This is useful when people want to
statically compile GTK into an application that does not use media.
For now, this option is the default.

We also support a new environment variable GTK_MEDIA that allows
selecting the implementation to use.
GTK_MEDIA=help can be used to get info about the available
implementations.
gtk/gtkmain.c
gtk/gtkmediafile.c
gtk/gtkmediafile.h
gtk/gtkmediafileprivate.h [new file with mode: 0644]
gtk/gtknomediafile.c [new file with mode: 0644]
gtk/gtknomediafileprivate.h [new file with mode: 0644]
gtk/meson.build
meson.build
meson_options.txt
modules/media/meson.build [new file with mode: 0644]
modules/meson.build